package com.zheng.shop.dao.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 退款表
 * </p>
 *
 * @author likun
 * @since 2017-12-29
 */
@TableName("shop_refund")
public class ShopRefund extends Model<ShopRefund> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 创建时间
     */
	private Date ctime;
    /**
     * 最后修改时间
     */
	private Date mtime;
    /**
     * 银行账户
     */
	@TableField("bank_account")
	private String bankAccount;
    /**
     * 银行名称
     */
	@TableField("bank_name")
	private String bankName;
    /**
     * 备注
     */
	private String memo;
    /**
     * 操作人
     */
	private String operator;
    /**
     * 收款人
     */
	private String payee;
    /**
     * 支付方式名称
     */
	@TableField("payment_config_name")
	private String paymentConfigName;
    /**
     * 退款序列号
     */
	@TableField("refund_sn")
	private String refundSn;
    /**
     * 退款类型
     */
	@TableField("refund_type")
	private Integer refundType;
    /**
     * 退款总金额
     */
	@TableField("total_amount")
	private BigDecimal totalAmount;
    /**
     * 存款id
     */
	@TableField("deposit_id")
	private Long depositId;
    /**
     * 订单id
     */
	@TableField("order_id")
	private Long orderId;
    /**
     * 支付方式id
     */
	@TableField("payment_config_id")
	private Long paymentConfigId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Date getCtime() {
		return ctime;
	}

	public void setCtime(Date ctime) {
		this.ctime = ctime;
	}

	public Date getMtime() {
		return mtime;
	}

	public void setMtime(Date mtime) {
		this.mtime = mtime;
	}

	public String getBankAccount() {
		return bankAccount;
	}

	public void setBankAccount(String bankAccount) {
		this.bankAccount = bankAccount;
	}

	public String getBankName() {
		return bankName;
	}

	public void setBankName(String bankName) {
		this.bankName = bankName;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public String getOperator() {
		return operator;
	}

	public void setOperator(String operator) {
		this.operator = operator;
	}

	public String getPayee() {
		return payee;
	}

	public void setPayee(String payee) {
		this.payee = payee;
	}

	public String getPaymentConfigName() {
		return paymentConfigName;
	}

	public void setPaymentConfigName(String paymentConfigName) {
		this.paymentConfigName = paymentConfigName;
	}

	public String getRefundSn() {
		return refundSn;
	}

	public void setRefundSn(String refundSn) {
		this.refundSn = refundSn;
	}

	public Integer getRefundType() {
		return refundType;
	}

	public void setRefundType(Integer refundType) {
		this.refundType = refundType;
	}

	public BigDecimal getTotalAmount() {
		return totalAmount;
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public Long getDepositId() {
		return depositId;
	}

	public void setDepositId(Long depositId) {
		this.depositId = depositId;
	}

	public Long getOrderId() {
		return orderId;
	}

	public void setOrderId(Long orderId) {
		this.orderId = orderId;
	}

	public Long getPaymentConfigId() {
		return paymentConfigId;
	}

	public void setPaymentConfigId(Long paymentConfigId) {
		this.paymentConfigId = paymentConfigId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShopRefund{" +
			"id=" + id +
			", ctime=" + ctime +
			", mtime=" + mtime +
			", bankAccount=" + bankAccount +
			", bankName=" + bankName +
			", memo=" + memo +
			", operator=" + operator +
			", payee=" + payee +
			", paymentConfigName=" + paymentConfigName +
			", refundSn=" + refundSn +
			", refundType=" + refundType +
			", totalAmount=" + totalAmount +
			", depositId=" + depositId +
			", orderId=" + orderId +
			", paymentConfigId=" + paymentConfigId +
			"}";
	}
}
